function DateFormat (date) {
  var datelist = []
  datelist = date.split(" ")
  var format = []
  format.push(datelist[3])
  switch (datelist[1]) {
    case 'Jan': format.push(1);break
    case 'Feb': format.push(2);break
    case 'Mar': format.push(3);break
    case 'Apr': format.push(4);break
    case 'May': format.push(5);break
    case 'Jun': format.push(6);break
    case 'Jul': format.push(7);break
    case 'Aug': format.push(8);break
    case 'Sep': format.push(9);break
    case 'Oct': format.push(10);break
    case 'Nov': format.push(11);break
    case 'Dec': format.push(12);break
  }
  format.push(datelist[2])
  return format.join("-")
}
export default DateFormat


